<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //history   浏览器历史记录,前进 forward 后退 back. 长度length,跳转 go
        /**
         * 1.属性：length
         * 2.方法：
         * (1)forward()
         * (2)back
         * (3)go(+num)
         * (4)pushState(state,title,url),向histroy中增加一条记录，不会刷新页面
         * (5)replaceState(state,title,url)替换当前的histroy记录,不刷新页面
         **/
    </script>
</body>
</html>